<me:UIWFG x:Class="WPFExcelReport.TSWFG"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWFG.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
    </me:UIWFG.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions> 
        <StackPanel Grid.Row="0">
            <WrapPanel>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=分组:}}"/>
                </Grid> 
                <ComboBox 
                    IsEditable="True" 
                    Width="Auto"
                    MinWidth="100" 
                    SelectedValuePath="KEY" 
                    DropDownOpened="ComboBox_DropDownOpened"
                    DisplayMemberPath="DES"
                    ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                    IsSynchronizedWithCurrentItem="True" 
            >
                </ComboBox  >
                <TextBlock HorizontalAlignment="Left"  Text="{Binding WFEDES,Source={StaticResource vwMaster},Converter={StaticResource Trim}}" Width="80" /> 
            </WrapPanel>
        </StackPanel> 
    </Grid>
</me:UIWFG>
